#include "CubeTexture.h"
#include "GraphicsManager.h"

CCubeTexture::CCubeTexture()
: m_Texture(NULL)
{
	
}
bool CCubeTexture::LoadFile()
{
	return !FAILED(D3DXCreateCubeTextureFromFile(CORE->GetGraphicsManager()->GetDevice(), m_FileName.c_str(), &m_Texture));
}

void CCubeTexture::Activate(size_t StageId)
{
	CORE->GetGraphicsManager()->GetDevice()->SetTexture(StageId,m_Texture);
}